Javaeye http://angeloce.iteye.com/admin/blogs/385976
========================================================== ============
Yaml is an intuitive data serialization format that can be recognized by computers. It is easy for humans to read and
1, example 11.1, Yaml file contents are as follows:host: localhost:3306user: rootpwd: 123456dbname: test 1.2, the code is as follows: //Convert the Yaml file to an object and convert it to JSON format to output the package Mainimport
Recently processed some configuration files, encountered in the YAML format of the file, because no previous contact with this format file, for XML is more familiar. So what is YAML? What are the advantages and disadvantages of it compared to XML?
Basic rules
YAML has the following basic rules:
1, Case sensitive
2. Use indentation to represent hierarchical relationships
3, prohibit the use of tab indentation, you can only use the space key
4. There is no limit to the indentation length, as
Serialization in. NET is usually in binary or xml format. After ajax emerged, the JSON format is also used, which is rare compared with YAML.
BinaryCannot be directly read. It must be decoded at the binary level;The format is defined by the vendor.
Atitit. Selection of manual configuration list files and data hierarchy Attilax summarize best practices --yaml1. Yaml is a good choice : 12. Hierarchical structure of data-structure:hash,list, and block literal. 13. Yaml differs from JSON
Get to know yaml in 5 minutes
Liubin http://www.ruby-cn.org/Http://yaml.kwiki.org/index.cgi? Homepage
Document location:Http://www.ruby-cn.org/articles/yaml_in_5_minutes.html
2004/11/11
Note: before you start, you may want to see the basic concepts
Good articles must be transferred: http://www.cnblogs.com/chwkai/archive/2005/10/07/beginning_yaml.html
Yaml is also a thing. In the case of XML flooding, the appearance of Yaml is really a bright, in the initial study of Yaml after a rough summary
This is a creation in
Article, where the information may have evolved or changed.
Or that Golang monitoring agent those things, now the function is almost, but the lack of signal processing and daemon service. The program is almost written, but what
Since we have a Star package, we need to compile panda and other tools first after installing Rakudo on MoarVM. In this step, you need to pay attention to your @ * inc path and the actual $ PERL6LIB PATH. The $ PATH in panda after compilation is
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.